package com.powernode.money.mapper;

import com.powernode.money.model.LoanInfo;

import java.util.List;

public interface LoanInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(LoanInfo record);

    int insertSelective(LoanInfo record);

    LoanInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(LoanInfo record);

    int updateByPrimaryKey(LoanInfo record);

    double selectHistoryAverageRate();

    List<LoanInfo> selectByProductTypeWithPage(int ptype, int pageNum, int pageSize);

    List<LoanInfo> selectByProductStatus(Integer status);

    int selectRowsByPtype(int ptype);
}